<template>
  <a-icon @click="$emit('click')" :type="type" :component="SVG_TYPES[`lcd-icon-${type}`]"></a-icon>
</template>

<script>
import { SVG_TYPES } from '../utils';

import { Icon } from 'ant-design-vue';

export default {
  name: 'SvgIcon',
  components: {
    [Icon.name]: Icon
  },
  props: {
    type: {
      type: String
    },
  },
  data() {
    return {
      SVG_TYPES,
    }
  }
}
</script>